#include "WinHelper.h"

void CenterToScreen(int width, int height, int &x, int &y)
{
	int sx = GetSystemMetrics(SM_CXSCREEN);
	int sy = GetSystemMetrics(SM_CYSCREEN);

    int cx = sx/2;
    int cy = sy/2;

    x = cx - width/2;
    y = cy - height/2;
}

void SetDefaultFont(HWND hWnd)
{
	HFONT font = (HFONT) GetStockObject(DEFAULT_GUI_FONT);
	SendMessageW(hWnd, WM_SETFONT, (LPARAM) (void *) font, TRUE);
}
